shortcutcontroller: Add GtkShortcutScope
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Aug 2018 14:02:27 +0000 (16:02 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 26 Mar 2020 03:14:27 +0000 (23:14 -0400)
commit730154df7d144a7b14b4c74c3a47592a2bf62bed
tree9a5a28ff7f488f2237cc4ef56d3338c4ad333298
parent2309e1dd38daabc7b3e0fefb047ed8e3be78a3c0
shortcutcontroller: Add GtkShortcutScope

Allow setting the scope for a controller. The scope determines at what
point in event propagation the shortcuts will be activated.

Local scope is the usual activation, global scope means that the root
widget activates the shortcuts - ie they are activated at the very
start of event propagation (for global capture events) or the very end
(for global bubble events).
Managed scope so far is unimplemented.

This is supposed to be used to replace accelerators and mnemonics.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkenums.h
gtk/gtkshortcutcontroller.c
gtk/gtkshortcutcontroller.h
gtk/gtkshortcutcontrollerprivate.h
gtk/gtkwidget.c